import java.io.Serializable;


public class Player implements Serializable {
	public String name = "Kevin";
	public int wood, clay, reed, stone, veggie, wheat, food;
	private int people, newborns;
	public boolean start;
	private FarmBoard farm;
	public Player() {
		start = false;
		wood = 0;
		clay = 0;
		reed = 0;
		stone = 0;
		veggie = 0;
		wheat = 0;
		food = 0;
		people = 0;
		newborns = 0;
		farm = new FarmBoard(this);
		food = 4;
	}
	public boolean addperson() {
		if(people + newborns < farm.housecount) {
			newborns++;
			return true;
		} else {
			return false;
		}
	}
	public void startround() {
		if(newborns > 0) {
			people += newborns;
			newborns = 0;
		}
		farm.startround();
	}
}
